package com.vchello.bean.security;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 
 * @author power
 * 权限
 */
@TableName("security")
public class Security extends Model<Security>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId("id")
	private int id;

	@TableField("name")
	private String name;

	@TableField("permission")
	private String permission;

	@TableField("sort")
	private int sort;

	@TableField("father_id")
	private int fatherId;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getFatherId() {
		return fatherId;
	}

	public void setFatherId(int fatherId) {
		this.fatherId = fatherId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}